package com.platform.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

/**
 * Description: 用户DTO
 *
 * @author libin Created on 2019/7/16
 **/
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class UserDto implements Serializable {

    private static final long serialVersionUID = 2945199532259185940L;

    private String id;

    private String username;

    private String password;

    private String email;

    private String mobile;

    private String departId;

    @JsonIgnoreProperties({"createDate", "updateDate", "parentName", "parentId", "delFlag", "route", "desc", "roleType"})
    private Set<RoleDto> roles;
}
